package com.light.gulimall.auth.feign;

import com.light.common.utils.R;
import com.light.gulimall.auth.dto.LoginDTO;
import com.light.gulimall.auth.dto.SocialUser;
import com.light.gulimall.auth.vo.UserRegisterVo;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用gulimall-member服务
 */
@FeignClient(name = "gulimall-member")
public interface MemberRemoteFeignClient {


    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginDTO dto);


    @PostMapping("/member/member/socialLogin")
    R login(@RequestBody SocialUser dto);
}
